import request from '@/utils/request'
import defaultSettings from '@/settings'
export function list(query) {
  return request({
    url: defaultSettings.serviceUrl.moon_fast + '/config/sysConfig/list',
    method: 'post',
    data: query
  })
}

export function editSave(data) {
  return request({
    url: defaultSettings.serviceUrl.moon_fast + '/config/sysConfig/editSave',
    method: 'post',
    data: data
  })
}
export function removeByIds(id) {
  return request({
    url: defaultSettings.serviceUrl.moon_fast + '/config/sysConfig/removeByIds?ids=' + id,
    method: 'get'
  })
}
export function updateStatusById(id,status) {
  return request({
    url: defaultSettings.serviceUrl.moon_fast + '/config/sysConfig/updateStatusById?id=' + id +'&status='+status,
    method: 'get'
  })
}
export function cleanCache() {
  return request({
    url: defaultSettings.serviceUrl.moon_fast + '/config/sysConfig/cleanCache',
    method: 'get'
  })
}
